package com.zdb.demo.design.pattern.behavioral.chainofresponsibility.demo1;

public class GeneralManager extends Handler {

    @Override public String handleFeeRequest(String user, double fee) {
        String str = "";
        if ("小李".equals(user)) {
            str = String.format("总经理【同意】%s聚餐费用%f元的请求", user, fee);
        } else {
            str = String.format("总经理【不同意】%s聚餐费用%f元的请求", user, fee);
        }
        return str;
    }
}
